Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Py3k and asyncore/asynchat
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 32 of 32 - Expand all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josiah Carlson  
View profile  
 More options Mar 24 2008, 6:51 pm
From: "Josiah Carlson" <josiah.carl...@gmail.com>
Date: Mon, 24 Mar 2008 15:51:56 -0700
Local: Mon, Mar 24 2008 6:51 pm
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat
Let us not get side-tracked in this discussion.  Whether or not to
include any portion of Twisted into Python 2.6 is well past being a
reasonable question; 2.6 alpha 1 has been released.  It's a question
as to whether someone with commit access can or will commit the patch
as posted, run the tests to verify that they aren't broken, and
perhaps actually look at the code to verify that we (Giampaolo and I)
aren't insane.  Mind you, I've been using very similar variants of
this patch for months; it fixes outstanding bugs, improves
performance, makes the handle* interfaces more consistent, and even
offers a 'sample' implementation of a basic protocol in the source
(for those who are willing to look).  Do we want to fix
asyncore/asynchat with work that has already been done and tested?

If you want a reason as to why twisted shouldn't *replace*
asyncore/asynchat, I'll give you a few: As stated previously by Guido
and others (please see previous threads about this over the course of
the last 4 years), asyncore/asynchat provide a more or less minimal
interface for asynchronous sockets in Python.  Any module/package that
seeks to implement asynchronous sockets will need to, at least,
implement that much.  Asyncore/asynchat at present will play nicely
with any event loop available, given certain caveats*.  Further, if
someone spends a half hour reading the source of a reasonably written
asyncore server/client, they should understand the basics and be able
to begin using it directly (see any one of the simple echo variants).

As to whether twisted should be added to the standard library at some
point in the future as a "this is better than asyncore in every way,
use this instead"; that is a different discussion, not related to 2.6
(perhaps not even related to the 2.x series at all, depending on the
future of 2.x).

 - Josiah

* If your application strictly responds to socket IO, then implement
your application as part of handle_* methods.  If your application
does more, then call asyncore.poll() often enough for data to be
handled sufficiently fast.  If neither offer sufficient performance or
flexibility (maybe something like bittorrent + wxPython), use one
thread for your GUI, one thread for your sockets, and use
Queue.Queue() or some other threadsafe message delivery method.

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A.M. Kuchling  
View profile  
 More options Mar 25 2008, 7:00 am
From: "A.M. Kuchling" <a...@amk.ca>
Date: Tue, 25 Mar 2008 07:00:51 -0400
Local: Tues, Mar 25 2008 7:00 am
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat

On Mon, Mar 24, 2008 at 03:51:56PM -0700, Josiah Carlson wrote:
> reasonable question; 2.6 alpha 1 has been released.  It's a question
> as to whether someone with commit access can or will commit the patch
> as posted, run the tests to verify that they aren't broken, and
> perhaps actually look at the code to verify that we (Giampaolo and I)
> aren't insane.  Mind you, I've been using very similar variants of

I think we should just give you commit access so that you can commit
changes to asyncore/asynchat yourself; it doesn't seem as if any of
the committers use asyncore enough to check patches for it.

--amk

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neal Norwitz  
View profile  
 More options Mar 26 2008, 12:00 am
From: "Neal Norwitz" <nnorw...@gmail.com>
Date: Tue, 25 Mar 2008 21:00:18 -0700
Local: Wed, Mar 26 2008 12:00 am
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat

That's a lot of patches.  My immediate concern is that test_asynchat
is very flaky and fails often.  Sometimes it causes other tests to
fail.  Is there a patch that addresses this?  If you need examples,
just look through the buildbot mails that mention test_asynchat in:
http://mail.python.org/pipermail/python-checkins/

Some platforms have more problems than others, but almost all
platforms have failed test_asynchat at one point or another.

Please break up the patches into 2 sets and prioritize the patches
with the set.

  Set #1:  Patches that have a test and doc updates if required
  Set #2:  Patches that don't have a test or doc updates as required

For the patches that fall into Set #1, list them in priority order.
Top priority would be a problem that fixes failures seen in the
buildbots.  Next priority would go to the patches that solve more
serious problems.  Post the results here. I will try to look at them.

For every patch you list, make sure that it conforms to the proper
style (e.g, PEP 8) and is essentially perfect and ready for inclusion.
 This means that there is a single file to download that contains all
the modifications. The changes are appropriately commented, lines are
less than 80 characters, etc.  One of the modifications should be an
entry in Misc/NEWS.

n
_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josiah Carlson  
View profile  
 More options Mar 26 2008, 3:21 am
From: "Josiah Carlson" <josiah.carl...@gmail.com>
Date: Wed, 26 Mar 2008 00:21:18 -0700
Local: Wed, Mar 26 2008 3:21 am
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat

On Tue, Mar 25, 2008 at 11:26 PM, Neal Norwitz <nnorw...@gmail.com> wrote:
> Any reason this was sent just to me and not the list?

Because gmail only replies to the sender by default.  I need to
remember to cc python-dev when I reply (I used the same email client
for 8 1/2 years, remembering the quirks of gmail may take some time).

I'll look for it tomorrow.  For reference, searches of
'site:mail.python.org test_asynchat failure buildbot' only seem to
produce the socket listen error.  If there is a better incantation to
get google to produce the proper errors (and/or a link), I would
appreciate the help.

See http://bugs.python.org/issue1736190 for an updated patch for the
modules.  The current test cases pass without issue, though we may
want to add tests, which I need to look at the original patch and the
original file from which it was created against, then compare it with
the most recent changes to the tests from Facundo last June or July.

I should have the time to get patches for tests and documentation by Monday.

 - Josiah
_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josiah Carlson  
View profile  
 More options Mar 30 2008, 10:44 pm
From: "Josiah Carlson" <josiah.carl...@gmail.com>
Date: Sun, 30 Mar 2008 19:44:03 -0700
Local: Sun, Mar 30 2008 10:44 pm
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat
(sorry for top posting)

I haven't really had time to update the tests/documentation, but
again, I wasn't experiencing any strange test failures with
asyncore/asynchat, nor have I been able to find the buildbot failures
that you are referring to.  Could someone please link the failures
that are not related to being unable to discover a port number?

According to the release schedule, we should have at least a couple
more months for documentation and tests to be updated (I can get
patches ready for alpha 3).

 - Josiah

On Wed, Mar 26, 2008 at 12:21 AM, Josiah Carlson

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neal Norwitz  
View profile  
 More options Mar 31 2008, 3:11 am
From: "Neal Norwitz" <nnorw...@gmail.com>
Date: Mon, 31 Mar 2008 00:11:49 -0700
Local: Mon, Mar 31 2008 3:11 am
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat
On Sun, Mar 30, 2008 at 7:44 PM, Josiah Carlson

<josiah.carl...@gmail.com> wrote:

>  I haven't really had time to update the tests/documentation, but
>  again, I wasn't experiencing any strange test failures with
>  asyncore/asynchat, nor have I been able to find the buildbot failures
>  that you are referring to.  Could someone please link the failures
>  that are not related to being unable to discover a port number?

3 different platforms, 3 different problems:

http://www.python.org/dev/buildbot/all/alpha%20Tru64%205.1%20trunk/bu...
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%203%203.0/builds...
http://www.python.org/dev/buildbot/all/x86%20XP-4%203.0/builds/643

>  According to the release schedule, we should have at least a couple
>  more months for documentation and tests to be updated (I can get
>  patches ready for alpha 3).

When you get the patches with tests and doc, I'll be happy to check in.

n
_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josiah Carlson  
View profile  
 More options May 4 2008, 2:13 pm
From: "Josiah Carlson" <josiah.carl...@gmail.com>
Date: Sun, 4 May 2008 11:13:53 -0700
Local: Sun, May 4 2008 2:13 pm
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat

I have updated the documentation, and as much of the tests as was
required to pass on my Windows XP machine.  In looking at the
buildbots, I'm not seeing any more common issues.  Unfortunately, I
also hit the urls provided above too late, and I wasn't able to see
the actual issues (if they still persist).

If possible, the syntax in the documentation that I added should be
checked, as I needed to convert from my older TeX docs to the new ReST
doc format.

I have attached the patch file, and am in the process of regaining
access to the bug tracker.  In the mean time, Giampaolo will be
posting the patch to the tracker in issue 1736190.

If anyone has any questions, please ask.

 - Josiah

  full_async_patch.patch
25K Download

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchiv...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google